/*
 * Created by JFormDesigner on Mon Dec 13 16:13:47 CST 2021
 */

package com.cn.项目.飞机预约管理系统.Maininterface;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


public class Fail extends JFrame {
    public Fail() {
        initComponents();
    }

    private void button1ActionPerformed(ActionEvent e) {
        // TODO add your code here
        this.dispose();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        label1 = new JLabel();
        button1 = new JButton();

        //======== this ========
        setVisible(true);
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- label1 ----
        label1.setText("操作失败，请检查完毕再次重试");
        label1.setFont(label1.getFont().deriveFont(label1.getFont().getSize() + 6f));
        label1.setForeground(new Color(255, 0, 51));
        contentPane.add(label1);
        label1.setBounds(15, 65, 280, 50);

        //---- button1 ----
        button1.setText("确认");
        button1.setForeground(new Color(204, 0, 0));
        button1.setFont(button1.getFont().deriveFont(button1.getFont().getSize() + 6f));
        button1.addActionListener(e -> button1ActionPerformed(e));
        contentPane.add(button1);
        button1.setBounds(100, 145, 100, 45);

        contentPane.setPreferredSize(new Dimension(305, 255));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    private JLabel label1;
    private JButton button1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
